﻿@model _PLATFORM.DATA.SYSTEM

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("Create", "Systems", FormMethod.Post, new { enctype="multipart/form-data" }))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>SYSTEM</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.NAME)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NAME)
            @Html.ValidationMessageFor(model => model.NAME)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.IMAGE)
        </div>
        <div class="editor-field">
            <input name="new_img_imageUpload" type="file" id="new_img_imageUpload" value="Upload" />
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.INSTALL_PRICE)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.INSTALL_PRICE)
            @Html.ValidationMessageFor(model => model.INSTALL_PRICE)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.PDF)
        </div>
        <div class="editor-field">
            <input name="new_pdfUpload" type="file" id="new_pdfUpload" value="Upload" />
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
